<template>
	<view class="index-content">
		<view class="list" v-for="(item,index) in lists">
			<img class="img" src="../../static/msg.png" alt="">
			<view class="content">
				<view>{{item.title	}}</view>
				<view class="ssaf">
					<view>{{item.content}}</view>
					<view>{{item.createTime}}</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		noticeById
	} from '@/api/work/notice.js'
	export default {
		data() {
			return {
				lists:[]
			}
		},
		onLoad(e) {
			console.log(e)
			this.barCounterInvestorId = e.barCounterInvestorId
		},
		onShow() {
			this.page()
		},
		methods: {
			page() {
				noticeById({
					pageNum: 1,
					pageSize: 50,
					barCounterInvestorId: this.barCounterInvestorId
				}).then(res => {
					console.log(res)
					this.lists = res.data.list
				})
			}
		}
	}
</script>

<style>
	page {
		background-color: #f4f4f4;
	}
</style>
<style lang="scss" scoped>
	.index-content {
		margin: 20rpx;

		.list {
			display: flex;
			align-items: center;
			background-color: #fff;
			padding: 20rpx;
			margin-bottom: 20rpx;
			border-radius: 16rpx;

			.img {
				width: 100rpx;
				height: 100rpx;
				margin-right: 10rpx;
			}

			.content {
				width: 85%;
			}

			.ssaf {
				font-size: 26rpx;
				display: flex;
				margin-top: 6rpx;
				opacity: 0.6;
				justify-content: space-between;
			}
		}
	}
</style>